﻿<f:layout name="Default" />

<f:section name="header">{modul.code}: {modul.name}</f:section>
<f:section name="main">
	


	<f:flashMessages />





	<h3>{modul.beschreibung}</h3>
	<div>

		<h3>Kurse dieses Moduls</h3>


		<!-- ###SEMESTER### -->
		<div class="trcontainer">

		
		<f:for each="{kursByTurnus}" as="turnus">
			<h3 style="text-align: right;">{turnus.sem} ({modul.code} - {turnus.num})</h3>
			<table class="currtable"
			style="border-collapse: collapse; width: 100%; margin-bottom: 0.5em;">
				
					<tr>
						<th  width="56">Kurs</td>
						<th  width="47">UE</td>
						<th  style="text-align: left;">Veranstaltung</td>
					</tr>
<tbody>
					<f:for each="{turnus.data}" as="kursstamm">
					<f:for each="{kursstamm.kurse}" as="kurs">
						<tr>
							<td valign="top" align="center" width="45">{kursstamm.kursNr}.{kurs.version}</td>
							<td valign="top" align="center" width="40">{kurs.ue}</td>
							<td valign="top"><f:link.action controller="Kurs"
									action="show" arguments="{kurs : kurs}">{kurs.titel}</f:link.action>
							</td>
						</tr>
						</f:for>
					</f:for>
				</tbody>
			</table>
		</f:for>
</div>


		<!-- ###SEMESTER### -->
	</div>
	<f:link.action action="list">Zurück</f:link.action>
	<br />

</f:section>